Skip to content

Conversation

@kanake10
Copy link
Contributor

Goal

Add unit tests for the addReply function to ensure it correctly appends replies and updates the replyCount, while maintaining the order of replies

Implementation

Created two test cases for the addReply

Testing

Ran unit tests to confirm:

replyCount is correctly incremented.

The replies list contains the new reply.

Replies are sorted correctly according to the comparator.

Checklist

  • Issue linked (if any)
  • Tests/docs updated
  • I have signed the Stream CLA (required for external contributors)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2025

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@gpunto gpunto added the pr:test Test-only changes label Oct 20, 2025
@aleksandar-apostolov aleksandar-apostolov changed the title unit tests for addReply function Add unit tests for addReply function Oct 20, 2025
@gpunto gpunto merged commit be58158 into GetStream:develop Oct 21, 2025
6 checks passed
@kanake10 kanake10 deleted the add-reply-tests branch October 21, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:test Test-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants